﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.Services;
using BLL;
using NS.Utilities;
using NS.BLL.Systems;


public partial class Platform_Rebate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            txtDate.Text = DateTime.Now.ToString("yyyy-MM");
            GridBind();
        }
    }

    public void GridBind()
    {
        FGridView1.DataSource = MemberPayService.GetRebateDetail(txtDate.Text.Trim());
        FGridView1.DataBind();
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        GridBind();
    }
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        MemberAccountService.Grant(txtDate.Text.Trim());
        MessageBox.ShowInfo(this, "发放完成！");
    }
}